<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta  charset="utf-8">
<meta  name="viewport"  content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>商品介绍</title>
<link  rel="stylesheet"  href="__PUBLIC__/Wap/css/css.css">
<script  src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
 <style type="text/css">
      img{
          width: 100%;
          height: 100%;
      }
 </style>
</head>
<body  style="background:#f6f6f8;">
<section  class="wrap">
    <dt  class="pri_img2" style="width: 100%;height: 14rem;">
     <a  href="javascirpt:;"  title="{$goods['goods_name']}">
        <img  src="__ROOT__{$goods['good_img_arr'][0]}"  alt="{$goods['goods_name']}">
     </a>
   </dt>
  <section  class="prize_detail"  id="info" style="padding: 0 1rem 0;">
    <dl  class="prize2">
      <dd  class="pri_info2">
        <h3  class="pri_tit">
            <a href="javascirpt:;"  title="{$goods['goods_name']}">{$goods['goods_name']}</a>
        </h3>
        <p class="total"><if condition="$bid_good['user_count'] eq 0 AND time() gt $bid['end_time']">已流拍<else/>当前最高价：<notempty name="bid_good['max_price']">￥{$bid_good['max_price']}<else/>暂无出价</notempty></if></p>
        <div  class="join_num">
          <div  class="bar">
            <div  style="width:{$bid_good['bili']}%;"  class="bar_in"></div>
          </div>
          <span  class="att_num" id="LeftTime"></span> <span  class="remain_num">出价次数：<span  class="fc">{$bid_good['user_count']}</span>次</span> </div>

       <if condition="$bid_good['user_count'] eq 0 AND time() gt $bid['end_time']">
           <a  href="#"  title="竞价已流拍"  class="chk_btnn"  style="display:">竞价已流拍</a>
       <elseif condition="$bid_good['user_count'] neq 0 AND time() gt $bid['end_time']"/>       
           <a  href="#"  title="竞价已结束"  class="chk_btnn"  style="display:">竞价已结束</a>
        <else />
        <a  href="{:U('exchange', array('id' => $bid_good['id']))}"  title="我要出价"  class="chk_btnn"  style="background: #f60;">我要出价</a>
       </if> 

     <if condition="time() gt $bid['end_time']"> 
       <a style="background-color:#66CC00;display:block;" href="{:U('area',array('area' => $bid_good['bid_id']))}" class="chk_btnn"  id="giftinfo">本场其他拍品</a>
      <else />
        <a style="background-color:#66CC00;display:block;" href="{:U('index',array('bind' => $bid_good['bid_id']))}" class="chk_btnn"  id="giftinfo">本场其他拍品</a> 
      </if>   
    </div>

      </dd>
    </dl>
  </section>
 
  <section  class="white_box">
    <div  class="record_list"  id="gift">
      <h3>最近参与记录</h3>
      <span  class="ico_clock"></span>
   <notempty name="user_list">
     <div  class="date">
      <span  class="dot"></span>
     </div>
      <ul>
        <volist name="user_list" id="vo">
        <li><span  class="dot"><i></i></span>
          <p><span  class="fc"><a  style="color:#ee433e;"  href=""><?php echo getUSerBidSn($bid_good['bid_id'],$vo['user_id']);?></a></span> 出价<span class="fc">{$vo['per_price']}元</span></p>
          <span  class="time">{:date('Y-m-d H:i:s',$vo['create_time'])}</span> 
        </li>
        </volist>
      </ul>
     </notempty>
    </div>
  </section>
  <style type="text/css">
 .detail-content{line-height:20px;}
 .detail-content img{width:100%;}
 .detail-div{margin-top:10px; background:#FFF; overflow:hidden; padding:10px; border:1px #DDD solid;}
  </style>
  <div class="detail-div img-rounded detail-content" style="word-break:break-all">
    <strong class="item_txt">商品介绍</strong>
     
     <volist name="goods['good_img_arr']" id="img">
        <img src="__ROOT__{$img}" >
     </volist>
  </div>
</section>
</body>
<script>
function FreshTime()
{
    var str ="{:date('Y-m-d H:i:s',$bid['start_time'])}";
    str = str.replace(/-/g,"/");
    var starttime= new Date(str);//开始时间
    var strr ="{:date('Y-m-d H:i:s',$bid['end_time'])}";
    strr = strr.replace(/-/g,"/");
    var endtime=new Date(strr);//结束时间
    var nowtime = new Date();//当前时间
    if (nowtime > starttime) {
        var lefttime=parseInt((endtime.getTime()-nowtime.getTime())/1000); 
        d=parseInt(lefttime/3600/24);
        h=parseInt((lefttime/3600)%24);
        m=parseInt((lefttime/60)%60);
        s=parseInt(lefttime%60);
       
        document.getElementById("LeftTime").innerHTML="时间剩余："+d+"天"+h+"时"+m+"分"+s+"秒";
        if(lefttime<=0){
        document.getElementById("LeftTime").innerHTML="竞价已结束";
        clearInterval(sh);
        }
    }else{
        document.getElementById("LeftTime").innerHTML="竞价未开始";
        clearInterval(sh);
    }
}
FreshTime()
var sh;
sh=setInterval(FreshTime,1000);
</script>
<script>
    function close() {
        wx.closeWindow();
    };
</script>
</html>